package gepetto.message;

import java.util.List;

public interface MessageCodec {
	public static final int HAS_MESSAGES = 0;
	public static final int NO_MESSAGES = 1;
	public static final int MALFORMED = 2;
	public static final int ERROR = 3;
	
	public int add (byte [] data);
	public void add (Message msg);
	public List<Message> get ();
	public int get (byte [] buf);
}
